/**
 * Generate time : 2011-07-05 11:09:40
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cm.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCMExportMaterial
 * 
 */
public class ZMCMExportMaterial extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdDepotCode = " "; /* 库房编号 */
	private String fdDepotName = " "; /* 库房名称 */
	private String fdNoteCode = " "; /* 单据编号 */
	private String fdResourceNoteCode = " "; /* 原单据编号 */
	private String fdExportType = " "; /* 出库类型 */
	private String fdNoteDate = " "; /* 开单日期 */
	private String fdEditor = " "; /* 编制人 */
	private String fdRemark = " "; /* 备注 */
	private String fdYear = " "; /* 记账年份 */
	private String fdMonth = " "; /* 记账月份 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepotCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("库房编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepotName");
		eiColumn.setFieldLength(80);
		eiColumn.setDescName("库房名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNoteCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("单据编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdResourceNoteCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("原单据编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdExportType");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("出库类型");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNoteDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("开单日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEditor");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("编制人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemark");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdYear");
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("记账年份");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdMonth");
		eiColumn.setFieldLength(2);
		eiColumn.setDescName("记账月份");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCMExportMaterial() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdDepotCode - 库房编号
	 * 
	 * @return the fdDepotCode
	 */
	public String getFdDepotCode() {
		return this.fdDepotCode;
	}

	/**
	 * set the fdDepotCode - 库房编号
	 */
	public void setFdDepotCode(String fdDepotCode) {
		this.fdDepotCode = fdDepotCode;
	}

	/**
	 * get the fdDepotName - 库房名称
	 * 
	 * @return the fdDepotName
	 */
	public String getFdDepotName() {
		return this.fdDepotName;
	}

	/**
	 * set the fdDepotName - 库房名称
	 */
	public void setFdDepotName(String fdDepotName) {
		this.fdDepotName = fdDepotName;
	}

	/**
	 * get the fdNoteCode - 单据编号
	 * 
	 * @return the fdNoteCode
	 */
	public String getFdNoteCode() {
		return this.fdNoteCode;
	}

	/**
	 * set the fdNoteCode - 单据编号
	 */
	public void setFdNoteCode(String fdNoteCode) {
		this.fdNoteCode = fdNoteCode;
	}

	/**
	 * get the fdResourceNoteCode - 原单据编号
	 * 
	 * @return the fdResourceNoteCode
	 */
	public String getFdResourceNoteCode() {
		return this.fdResourceNoteCode;
	}

	/**
	 * set the fdResourceNoteCode - 原单据编号
	 */
	public void setFdResourceNoteCode(String fdResourceNoteCode) {
		this.fdResourceNoteCode = fdResourceNoteCode;
	}

	/**
	 * get the fdExportType - 出库类型
	 * 
	 * @return the fdExportType
	 */
	public String getFdExportType() {
		return this.fdExportType;
	}

	/**
	 * set the fdExportType - 出库类型
	 */
	public void setFdExportType(String fdExportType) {
		this.fdExportType = fdExportType;
	}

	/**
	 * get the fdNoteDate - 开单日期
	 * 
	 * @return the fdNoteDate
	 */
	public String getFdNoteDate() {
		return this.fdNoteDate;
	}

	/**
	 * set the fdNoteDate - 开单日期
	 */
	public void setFdNoteDate(String fdNoteDate) {
		this.fdNoteDate = fdNoteDate;
	}

	/**
	 * get the fdEditor - 编制人
	 * 
	 * @return the fdEditor
	 */
	public String getFdEditor() {
		return this.fdEditor;
	}

	/**
	 * set the fdEditor - 编制人
	 */
	public void setFdEditor(String fdEditor) {
		this.fdEditor = fdEditor;
	}

	/**
	 * get the fdRemark - 备注
	 * 
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}

	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	
	/**
	 * get the fdYear - 记账年份
	 * 
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}

	/**
	 * set the fdYear - 记账年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	
	/**
	 * get the fdMonth - 记账月份
	 * 
	 * @return the fdMonth
	 */
	public String getFdMonth() {
		return this.fdMonth;
	}

	/**
	 * set the fdMonth - 记账月份
	 */
	public void setFdMonth(String fdMonth) {
		this.fdMonth = fdMonth;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdDepotCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepotCode")), fdDepotCode));
		setFdDepotName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepotName")), fdDepotName));
		setFdNoteCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNoteCode")), fdNoteCode));
		setFdResourceNoteCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdResourceNoteCode")), fdResourceNoteCode));
		setFdExportType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdExportType")), fdExportType));
		setFdNoteDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNoteDate")), fdNoteDate));
		setFdEditor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEditor")), fdEditor));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMonth")), fdMonth));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdDepotCode", StringUtils.toString(fdDepotCode, eiMetadata.getMeta("fdDepotCode")));
		map.put("fdDepotName", StringUtils.toString(fdDepotName, eiMetadata.getMeta("fdDepotName")));
		map.put("fdNoteCode", StringUtils.toString(fdNoteCode, eiMetadata.getMeta("fdNoteCode")));
		map.put("fdResourceNoteCode", StringUtils.toString(fdResourceNoteCode, eiMetadata.getMeta("fdResourceNoteCode")));
		map.put("fdExportType", StringUtils.toString(fdExportType, eiMetadata.getMeta("fdExportType")));
		map.put("fdNoteDate", StringUtils.toString(fdNoteDate, eiMetadata.getMeta("fdNoteDate")));
		map.put("fdEditor", StringUtils.toString(fdEditor, eiMetadata.getMeta("fdEditor")));
		map.put("fdRemark", StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));
		map.put("fdYear", StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));
		map.put("fdMonth", StringUtils.toString(fdMonth, eiMetadata.getMeta("fdMonth")));
		
		return map;

	}
}